package app.lazygamer;

import android.content.SharedPreferences;
import android.content.res.Resources;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.PreferenceActivity;

import android.webkit.WebView;

public class Browser_Set extends PreferenceActivity {
	WebView web;

	boolean imgBlock;
	boolean javaScript;
	Resources res;
	CheckBoxPreference image;
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.b_settings); 
     web = (WebView)findViewById(R.id.browser);
     
     
	}
	
	 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
	      if (key.equals("Clear_Cache")) {
	    	web.clearCache(true);
	      }
	      
	      if (key.equals("Clear_History")) {
		    	web.clearHistory();
		      }
	  } 
	
}
